package com.pinda.controller;


import com.pinda.service.IPdTransportOrderService;
import com.pinda.work.vo.TransportOrderQueryView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 运单表 前端控制器
 * </p>
 *
 * @author 黄杰
 * @since 2023-06-13
 */
@RestController
@RequestMapping("/pd-transport-order")
public class PdTransportOrderController {

    @Autowired
    private IPdTransportOrderService pdTransportOrderService;

    /**
     * 查询该运输任务有的运单
     * @return
     */
    @GetMapping("/querypagetransportorderview/{id}")
   public List<TransportOrderQueryView> querypagetransportorderviewController(@PathVariable("id") String id){
        return this.pdTransportOrderService.querypagetransportorderviewService(id);
    }

}
